<nav class="navbar navbar-static-top" role="navigation">
  <a href="#" class="navbar-btn sidebar-toggle" data-toggle="offcanvas" role="button">
    <span class="sr-only">Toggle navigation</span>
    <span class="icon-bar"></span>
    <span class="icon-bar"></span>
    <span class="icon-bar"></span>
  </a>
  <style type="text/css">
  .navbar-right .nav{
    display: block;
  }
  </style>
  <div class="navbar-right">
    <ul class="nav navbar-nav">
      <!-- <li class="dropdown user user-menu">
        <a href="<?php echo $this->getController()->createUrl('site/chat') ?>" target="_blank">在线交流</a>
      </li> -->

      <li class="dropdown user user-menu">
        <a href="/" target="_blank">查看站点</a>
      </li>
      <li class="dropdown user user-menu">
        <a href="#" class="dropdown-toggle" data-toggle="dropdown">
          <i class="glyphicon glyphicon-user"></i>
          <span><?php echo Yii::app()->user->getName(); ?> <i class="caret"></i></span>
        </a>
        <ul class="dropdown-menu">
          <li><a href="<?php echo $this->getController()->createUrl('manager/mypass'); ?>" class="btn btn-flat">修改密码</a></li>
          <li><a href="<?php echo $this->getController()->createUrl('manager/logout'); ?>" class="btn btn-flat">退出</a></li>
        </ul>
      </li>
    </ul>
  </div>
</nav>
<script type="text/javascript">
  
    $('.new_order_bar').hide(); 
</script>